package com.ica.model.command;

import android.content.Context;

/**
 * @author   Hector
 */
public class SetVolumeModeCommand extends AudioStateCommand {
	
	/**
	 */
	private int vol = 0;
	
	/**
	 * @param  vol
	 * @uml.property  name="vol"
	 */
	@Override
	public void setVol(int vol) {		
		this.vol = vol;
	}
	
	@Override
	protected void executeAudioManagerMethod(Context context) {	
		audioManagerAdaptor.setRingVolume(context,vol);
	}

	@Override
	protected String getAudioManagerMessage() {	
		return "Volume set to "+vol;
	}
}
